
<p-fieldset legend="Email Info">
    <section>
        <input class="subject-input" placeholder="Input Email Subject" type="text" pInputText [(ngModel)]="emailSubject"/>
    </section>
    <section>
        <p-multiSelect class="to-address" defaultLabel="Select To Address" [options]="addressList" [(ngModel)]="selectedAddress"></p-multiSelect>
    </section>
    <section>
        <textarea class="content-input" placeholder="Input Email Content" pInputTextarea [(ngModel)]="emailContent"></textarea>
    </section>
    <section>
        <button pButton type="button" label="提交" (click)="submitEamilInfo()"></button>
    </section>
</p-fieldset>

<p-dialog [(visible)]="displaySuccess">
    <p-header>
        邮件发送结果
    </p-header>
    {{emailResult}}
    <p-footer>
        <button pButton type="button" label="退下吧" (click)="closeSuccess()"></button>
    </p-footer>
</p-dialog>